package com.siteseat.crudeq.common.raw.protocol.v1;

public class ErrorMessage {

  private ErrorCode code;

  private String    detail;

  /**
   * @param code
   * @param detail
   */
  public ErrorMessage( ErrorCode code, String detail ) {
    this.code = code;
    this.detail = detail;
  }

  /**
   * Gets the code
   * 
   * @return the code
   */
  public ErrorCode getCode() {
    return code;
  }

  /**
   * Gets the detail
   * 
   * @return the detail
   */
  public String getDetail() {
    return detail;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public String toString() {
    return "ErrorMessage [code=" + code + ", detail=" + detail + "]";
  }

}
